package cc.jq1024.domain.activity.service.quota;

import cc.jq1024.domain.activity.model.entity.ActivityCountEntity;
import cc.jq1024.domain.activity.model.entity.ActivityEntity;
import cc.jq1024.domain.activity.model.entity.ActivitySkuEntity;
import cc.jq1024.domain.activity.repository.IActivityRepository;
import cc.jq1024.domain.activity.service.quota.rule.factory.DefaultActivityChainFactory;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * @Author: jia-qiang ljq1024.cc
 * @desc: 抽奖活动支撑类
 * @Date: 2024-04-23-14:41
 */
@Component
@AllArgsConstructor
public class RaffleActivityAccountQuotaServiceSupport {

    protected final IActivityRepository activityRepository;

    protected final DefaultActivityChainFactory defaultActivityChainFactory;

    public ActivitySkuEntity queryActivitySku(Long sku) {
        return activityRepository.queryActivitySku(sku);
    }

    public ActivityEntity queryRaffleActivityByActivityId(Long activityId) {
        return activityRepository.queryRaffleActivityByActivityId(activityId);
    }

    public ActivityCountEntity queryRaffleActivityCountByActivityCountId(Long activityCountId) {
        return activityRepository.queryRaffleActivityCountByActivityCountId(activityCountId);
    }
}
